package cn.s1995.sloth.bizs.oo.vo;

import cn.s1995.sloth.common.core.convert.JoinUrlPrefixConvert;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * MyCollectionProdVO
 *
 * @author Lex
 * @description
 * @date 2023/12/28 15:19
 */
@Data
@Schema(description = "我的收藏-产品")
public class MyCollectionProdVO {

    /**
     * 产品id
     */
    @Schema(description = "产品id")
    private Long id;

    /**
     * 产品名称
     */
    @Schema(description = "产品名称")
    private String name;

    /**
     * 是否上架
     */
    @Schema(description = "是否上架")
    private Boolean isSale;

    /**
     * 图片
     */
    @Schema(description = "图片")
    @JsonSerialize(using = JoinUrlPrefixConvert.class)
    private String pic;

    /**
     * 原价
     */
    @Schema(description = "原价")
    private BigDecimal originAmount;

    /**
     * 价格
     */
    @Schema(description = "价格")
    private BigDecimal amount;
}
